// routes.jsx
import { Routes, Route } from 'react-router-dom';
import AppLayout from '@/views/App/AppLayout';
import Dashboard from '@/views/App/Dashboard';
import Kpi from '@/views/Kpi/Kpi';
// import UserList from './pages/UserList';
import Effect from '@/views/Login/Effect'; // 导入Effect组件
const AppRoutes = () => {
  return (
    <Routes>
       <Route path="/" element={<Effect />} /> 
       {/*// 独立的根路径路由，不嵌套在AppLayout中*/}
      <Route element={<AppLayout />}>
        <Route path="dashboard" element={<Dashboard />} />
        <Route path="kpi" element={<Kpi />} />
       { /*    <Route path="overview" element={<Overview />} />
         <Route path="analytics" element={<Analytics />} />*/}
      
      </Route>
   
    </Routes>
  );
};

export default AppRoutes;